export const treeData = [
  {
    id: 1,
    name: '广东省',
    children: [
      {
        id: 3,
        name: '深圳市',
        parentId: 1,
        children: [
          {
            id: 10,
            name: '南山区',
            parentId: 3,
          },
          {
            id: 11,
            name: '宝安区',
            parentId: 3,
          },
          {
            id: 12,
            name: '福田区',
            parentId: 3,
          },
          {
            id: 13,
            name: '罗湖区',
            parentId: 3,
          },
        ],
      },
      {
        id: 4,
        name: '广州市',
        parentId: 1,
        children: [
          {
            id: 14,
            name: '天河区',
            parentId: 4,
          },
          {
            id: 15,
            name: '越秀区',
            parentId: 4,
          },
          {
            id: 16,
            name: '荔湾区',
            parentId: 4,
          },
          {
            id: 17,
            name: '海珠区',
            parentId: 4,
          },
        ],
      },
    ],
  },
  {
    id: 2,
    name: '香港特别行政区',
    children: [
      {
        id: 7,
        name: '香港岛',
        parentId: 2,
        children: [
          {
            id: 22,
            name: '中西区',
            parentId: 7,
          },
          {
            id: 23,
            name: '湾仔区',
            parentId: 7,
          },
          {
            id: 24,
            name: '东区',
            parentId: 7,
          },
          {
            id: 25,
            name: '南区',
            parentId: 7,
          },
        ],
      },
      {
        id: 8,
        name: '九龙',
        parentId: 2,
        children: [
          {
            id: 26,
            name: '油尖旺区',
            parentId: 8,
          },
          {
            id: 27,
            name: '深水埗区',
            parentId: 8,
          },
          {
            id: 28,
            name: '九龙城区',
            parentId: 8,
          },
        ],
      },
    ],
  },
]

export interface TreeNode {
  id: number
  name: string
  parentId?: number
  children?: TreeNode[]
}
